package com.platform.service.impl;

import com.platform.dao.GroupPurchaseDao;
import com.platform.entity.GroupPurchaseEntity;
import com.platform.service.GroupPurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class GroupPurchaseServiceImpl implements GroupPurchaseService {
    @Autowired
    private GroupPurchaseDao groupPurchaseDao;

    @Override
    public List<GroupPurchaseEntity> queryList(Map<String, Object> map) {
        return groupPurchaseDao.queryList(map);
    }

    @Override
    public GroupPurchaseEntity queryObject(Integer id) {
        return groupPurchaseDao.queryObject(id);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return groupPurchaseDao.queryTotal(map);
    }

    @Override
    public int save(GroupPurchaseEntity groupPurchaseEntity) {
        return groupPurchaseDao.save(groupPurchaseEntity);
    }

    @Override
    public int update(GroupPurchaseEntity groupPurchaseEntity) {
        return groupPurchaseDao.update(groupPurchaseEntity);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return groupPurchaseDao.deleteBatch(ids);
    }
}
